# Copyright (c) 2020 Peter Wohlfarth (Appsfactory GmbH)
#
# This file is part of Project EHRbase
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.



*** Settings ***
Resource                ${EXECDIR}/robot/_resources/suite_settings.robot

Test Setup              generic.prepare new request session    Prefer=return=representation
...															   Authorization=${AUTHORIZATION['Authorization']}
Documentation           *NOTE:* The validation of error messages in the tables below depends on system language settings:\n\n
...                           Validation of English messages (if the system language is set to English), \n\n
...                           Validation of German messages (if the system language is set to German) \n\n
...                     *Author:* Peter Wohlfarth

Force Tags              observation_create    body-temperature    create


*** Variables ***



*** Test Cases ***

001 Create Body Temperature (valid variants)
	[Documentation]     1. *CREATE* new an EHR record\n\n 
	...                 2. *LOAD* _observation-example-body-temperature-robot.json_\n\n
	...                 3. *UPDATE* values for all attributes from the table with only valid values\n\n
    ...                 4. *POST* example JSON to observation endpoint\n\n
	...                 5. *VALIDATE* the response status \n\n
    ...                 6. *VALIDATE* outcome against diagnostic text
    [Tags]             valid
    [Template]         create Observation Body Temperature JSON

#|  ressourceType  |          		ID   			|           meta         											|  	  status  	|                             									Identifier   						                            					  						                                                  			|                      				category                           					        						|                                        									code          										                            	                                                                                    	    	|         subject                       |	   DateTime	    |                      			    	  valueQuantity  			           		            |  dataabsentreason  |  R.-Code  |  ArrayNumber |         				                                      diagnostics                                                                                  							                                                                        
#|                 |                				|  available  | 			profile  								|          		|  available  |  			coding.system						|  		coding.code  	|  							     system  		   				 	 |   		  value  		   |    assigner    |       reference          	|  available  |  codingavailable  |  				system  									   |    	 code       |  available  |  coding available  |  					0.system	  				|  		0.code	  |        0.display         |  				1.system  		|  		1.code	     |                   1.display                |          text   		|   available  |   Identifier-value  	|                   |  available  |		value	|    unit    	 |  			system      		   |    code    |                    |           |              |               				ENG								        |                           DE                         |
    Observation    	        body-temperature  			true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      	http://terminology.hl7.org/CodeSystem/v2-0203			OBI          		https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid			2020-02-25			true		  ${37.5}	     Cel	           http://unitsofmeasure.org    	   Cel			 false               201            0    		                            ${EMPTY}                                                            ${EMPTY}
    Observation    	        test  						true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      	http://google.com						           	    OBI          		https://google.com												      8310-5_BodyTemperature           true          qwertzui1234#!§$            true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5		    test1234          	        http://google.com					missing   	   		test1234                              		test1234          			true    		   valid      	   	1990-12-30			true		  ${10.12}	 	 Cel	       	   http://unitsofmeasure.org    	   Cel			 false               201            0    		                            ${EMPTY}                                                            ${EMPTY}
    Observation    	        123456  					true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      	missing										      	    OBI          		missing        													      8310-5_BodyTemperature           false         Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5		    missing          	        missing                         	386725007	   		missing                               		missing           			true    		   valid      	   	2025-01-01			true		  ${15.38}	     Cel	           http://unitsofmeasure.org    	   Cel			 false               201            0    		                            ${EMPTY}                                                            ${EMPTY}
    Observation    	        missing 					true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			false     	http://terminology.hl7.org/CodeSystem/v2-0203           OBI          		https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5		    Body Temperature          	http://snomed.info/sct          	qwert   		   	Body Temperature (observable entity)        Body Temperature        	true    		   valid      	   	2020-02-25			true		  ${60}	         Cel	           http://unitsofmeasure.org    	   Cel			 false               201            0    		                            ${EMPTY}                                                            ${EMPTY}
#    Observation 


002 Create Body Temperature (invalid resourceType)
	[Documentation]     1. *CREATE* new an EHR record\n\n 
	...                 2. *LOAD* _observation-example-body-temperature-robot.json_\n\n
	...                 3. *UPDATE* values for all attributes from the table with only ``resourceType`` invalid\n\n
    ...                 4. *POST* example JSON to observation endpoint\n\n
	...                 5. *VALIDATE* the response status \n\n
    ...                 6. *VALIDATE* outcome against diagnostic text
    [Tags]             invalid    resourceType
    [Template]         create Observation Body Temperature JSON

#|  ressourceType  |          		ID   			|           meta         											|  	  status  	|                             									Identifier   						                            					  						                                                  			|                      				category                           					        						|                                        									code          										                            	                                                                                    	    	|         subject                       |	   DateTime	    |                      			    	  valueQuantity  			           		            |  dataabsentreason  |  R.-Code  |  ArrayNumber |         				                                      diagnostics 						 									     |
#|                 |                				|  available  | 			profile  								|          		|  available  |  			coding.system						|  		coding.code  	|  							     system  		   				 	 |   		  value  		   |    assigner    |       reference          	|  available  |  codingavailable  |  				system  									   |    	 code       |  available  |  coding available  |  					0.system	  				|  		0.code	  |        0.display         |  				1.system  		|  		1.code	     |                   1.display                |          text   		|   available  |   Identifier-value  	|                   |  available  |		value	|    unit    	 |  			system      		   |    code    |                    |           |              |               				ENG								                |                                         DE             |
    qwert   	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      	http://terminology.hl7.org/CodeSystem/v2-0203			OBI          		https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        	true			   true			  				http://loinc.org		  				8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid				2020-02-25		true		${37.5}	     	Cel	           http://unitsofmeasure.org    	   		Cel			 false               422            0			This does not appear to be a FHIR resource                                    Dies scheint keine FHIR-Ressource zu sein
    ${1234}    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      	http://terminology.hl7.org/CodeSystem/v2-0203			OBI          		https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        	true			   true			  				http://loinc.org		  				8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid				2020-02-25		true		${37.5}	     	Cel	           http://unitsofmeasure.org    	   		Cel			 false               422            0			This does not appear to be a FHIR resource                                    Dies scheint keine FHIR-Ressource zu sein
    missing    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      	http://terminology.hl7.org/CodeSystem/v2-0203			OBI          		https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        	true			   true			  				http://loinc.org		  				8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid				2020-02-25		true		${37.5}	     	Cel	           http://unitsofmeasure.org    	   		Cel			 false               422            0			Unable to find resourceType property                                          ResourceType-Property kann nicht gefunden werden
    ${empty}    	    body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      	http://terminology.hl7.org/CodeSystem/v2-0203			OBI          		https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        	true			   true			  				http://loinc.org		  				8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid				2020-02-25		true		${37.5}	     	Cel	           http://unitsofmeasure.org    	   		Cel			 false               422            0			This does not appear to be a FHIR resource                                    Dies scheint keine FHIR-Ressource zu sein


003 Create Body Temperature (invalid ID)
	[Documentation]     1. *CREATE* new an EHR record\n\n 
	...                 2. *LOAD* _observation-example-body-temperature-robot.json_\n\n
	...                 3. *UPDATE* values for all attributes from the table with only ``ID`` invalid\n\n
    ...                 4. *POST* example JSON to observation endpoint\n\n
	...                 5. *VALIDATE* the response status \n\n
    ...                 6. *VALIDATE* outcome against diagnostic text
    [Tags]             invalid    ID
    [Template]         create Observation Body Temperature JSON

#|  ressourceType  |          		ID   			|           meta         											|  	  status  	|                             									Identifier   						                            					  						                                                      |                      				category                           					        					|                                        									code          										                            	                                                                         					     		 |             subject                |	  DateTime	   	|                      			    	  valueQuantity  			           		            |  dataabsentreason  |  R.-Code  |  ArrayNumber |         				                                                                                                                        diagnostics 							                                                                        |
#|                 |                				|  available  | 			profile  								|          		|  available  |  			coding.system					  |  		coding.code  	|  							     system  		   				   |   		  value  		   |    assigner    |       reference         |  available  |  codingavailable  |  				system  									   |    	 code       |  available  |  coding available  |  					0.system	  				|  		0.code	  |       0.display       |  				1.system  				|  		1.code	  		|              1.display                  |     		 text  		   	 |  available  |   Identifier-value   |                	|  available  |		value	|    unit    	 |  			system      		   |    code    |                    |           |              |               			ENG                                                           |                                           DE                                                            |
    Observation    	        ${EMPTY}  					true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      	http://terminology.hl7.org/CodeSystem/v2-0203            OBI           		https://www.charite.de/fhir/CodeSystem/observation-identifiers      8310-5_BodyTemperature        true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        		 true    		   valid      		  	2020-02-25		  true		   	${37.5}	     	Cel		       http://unitsofmeasure.org    	 	Cel			 false               422           0    	 	@value cannot be empty                                                                                                                               @value kann nicht leer sein
    Observation    	        ${123456}  					true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      	http://terminology.hl7.org/CodeSystem/v2-0203            OBI           		https://www.charite.de/fhir/CodeSystem/observation-identifiers      8310-5_BodyTemperature        true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature       		 true    		   valid      		  	2020-02-25		  true		   	${37.5}	     	Cel		       http://unitsofmeasure.org    	   	Cel			 false               422           0    	 	Error parsing JSON: the primitive value must be a string                                                                                             Fehler beim Parsen von JSON: Der primitive Wert muss ein String sein.


004 Create Body Temperature (invalid meta/profile)
	[Documentation]     1. *CREATE* new an EHR record\n\n 
	...                 2. *LOAD* _observation-example-body-temperature-robot.json_\n\n
	...                 3. *UPDATE* values for all attributes from the table with only ``Meta`` invalid\n\n
    ...                 4. *POST* example JSON to observation endpoint\n\n
	...                 5. *VALIDATE* the response status \n\n
    ...                 6. *VALIDATE* outcome against diagnostic text
    [Tags]             invalid    Meta    Profile
    [Template]         create Observation Body Temperature JSON

#|  ressourceType  |          		ID   			|           meta         											|  	  status  	|                             									Identifier   						                            					  						                                                  			|                      				category                           					        						|                                        									code          										                            	                                                                                    	    	|         subject                       |	   DateTime	    |                      			    	  valueQuantity  			           		            |  dataabsentreason  |  R.-Code  |  ArrayNumber |         				                                                                                                                        diagnostics 							                                                                        |
#|                 |                				|  available  | 			profile  								|          		|  available  |  			coding.system						|  		coding.code  	|  							     system  		   				 	 |   		  value  		   |    assigner    |       reference          	|  available  |  codingavailable  |  				system  									   |    	 code       |  available  |  coding available  |  					0.system	  				|  		0.code	  |        0.display         |  				1.system  		|  		1.code	     |                   1.display                |          text   		|   available  |   Identifier-value  	|                   |  available  |		value	|    unit    	 |  			system      		   |    code    |                    |           |              |               				ENG								                                                                                      |                                         DE                                                              |
# no meta
    Observation    	        body-temperature  			false       https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      	http://terminology.hl7.org/CodeSystem/v2-0203			OBI          		https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid			2020-02-25			true		  ${37.5}	     Cel	           http://unitsofmeasure.org    	   Cel			 false               422            0    		                            Default profile is not supported for Observation. One of the following profiles is expected:                                                                    Default profile is not supported for Observation. One of the following profiles is expected:
# invalid profile
    Observation    	        body-temperature  			true        http://www.google.de       								final			true      	http://terminology.hl7.org/CodeSystem/v2-0203			OBI          		https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid			2020-02-25			true		  ${37.5}	     Cel	           http://unitsofmeasure.org    	   Cel			 false               422            0    		                            Profile reference 'http://www.google.de' could not be resolved, so has not been checked                                                                         The resource does not contain any supported profile. One of the following profiles is expected
    Observation    	        body-temperature  			true        test        											final			true      	http://terminology.hl7.org/CodeSystem/v2-0203			OBI          		https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid			2020-02-25			true		  ${37.5}	     Cel	           http://unitsofmeasure.org    	   Cel			 false               422            0    		                            Canonical URLs must be absolute URLs if they are not fragment references                                                                                        Canonical URLs must be absolute URLs if they are not fragment references
	Observation    	        body-temperature  			true        ${12345}        										final			true      	http://terminology.hl7.org/CodeSystem/v2-0203			OBI          		https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid			2020-02-25			true		  ${37.5}	     Cel	           http://unitsofmeasure.org    	   Cel			 false               422            0    		                            Error parsing JSON: the primitive value must be a string                                                                                                        Fehler beim Parsen von JSON: Der primitive Wert muss ein String sein.
	Observation    	        body-temperature  			true        missing      											final			true      	http://terminology.hl7.org/CodeSystem/v2-0203			OBI          		https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid			2020-02-25			true		  ${37.5}	     Cel	           http://unitsofmeasure.org    	   Cel			 false               422            0    		                            Default profile is not supported for Observation. One of the following profiles is expected:                                                                    Default profile is not supported for Observation. One of the following profiles is expected:
	Observation    	        body-temperature  			true        ${empty}        										final			true      	http://terminology.hl7.org/CodeSystem/v2-0203			OBI          		https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid			2020-02-25			true		  ${37.5}	     Cel	           http://unitsofmeasure.org    	   Cel			 false               422            0    		                            @value cannot be empty                                                                                                              							@value kann nicht leer sein


005 Create Body Temperature (invalid status)
	[Documentation]     1. *CREATE* new an EHR record\n\n 
	...                 2. *LOAD* _observation-example-body-temperature-robot.json_\n\n
	...                 3. *UPDATE* values for all attributes from the table with only ``Status`` invalid\n\n
    ...                 4. *POST* example JSON to observation endpoint\n\n
	...                 5. *VALIDATE* the response status \n\n
    ...                 6. *VALIDATE* outcome against diagnostic text
    [Tags]             invalid    Status
    [Template]         create Observation Body Temperature JSON

#|  ressourceType  |          		ID   			|           meta         											|  	  status  	|                             									Identifier   						                            					  						                                                  			|                      				category                           					        							|                                        									code          										                            	                                                                                    	    	|         subject                       |	   DateTime	    |                      			    	  valueQuantity  			           		            |  dataabsentreason  |  R.-Code  |  ArrayNumber |         				                                                                                                                        diagnostics 							                                                                        |
#|                 |                				|  available  | 			profile  								|          		|  available  |  			coding.system						|  		coding.code  	|  							     system  		   				 	 |   		  value  		   |    assigner    |       reference          	|  available  |  codingavailable  |  				system  									   		|    	 code       |  available  |  coding available  |  					0.system	  				|  		0.code	  |        0.display         |  				1.system  		|  		1.code	     |                   1.display                |          text   		|   available  |   Identifier-value  	|                   |  available  |		value	|    unit    	 |  			system      		   |    code    |                    |           |              |               				ENG								                                                                                      |                                         DE                                                              |
    Observation    	        body-temperature  			true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        test				true      	http://terminology.hl7.org/CodeSystem/v2-0203			OBI          		https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid			2020-02-25			true		  ${37.5}	     Cel	           http://unitsofmeasure.org    	   Cel			 false               400            0    		                        Unknown ObservationStatus code                                                                                                              					Unknown ObservationStatus code
	Observation    	        body-temperature  			true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        ${12345}			true      	http://terminology.hl7.org/CodeSystem/v2-0203			OBI          		https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid			2020-02-25			true		  ${37.5}	     Cel	           http://unitsofmeasure.org    	   Cel			 false               422            0    		                        Error parsing JSON: the primitive value must be a string                                                                                                        Fehler beim Parsen von JSON: Der primitive Wert muss ein String sein.
	Observation    	        body-temperature  			true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        missing				true      	http://terminology.hl7.org/CodeSystem/v2-0203			OBI          		https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid			2020-02-25			true		  ${37.5}	     Cel	           http://unitsofmeasure.org    	   Cel			 false               422            0    		                        Observation.status: minimum required = 1, but only found 0                                                                                                      mindestens erforderlich = Observation.status, aber nur gefunden Observation.status
	Observation    	        body-temperature  			true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        ${empty}			true      	http://terminology.hl7.org/CodeSystem/v2-0203			OBI          		https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid			2020-02-25			true		  ${37.5}	     Cel	           http://unitsofmeasure.org    	   Cel			 false               422            1    		                        @value cannot be empty                                                                                                                							@value kann nicht leer sein


006 Create Body Temperature (invalid identifier)
	[Documentation]     1. *CREATE* new an EHR record\n\n 
	...                 2. *LOAD* _observation-example-body-temperature-robot.json_\n\n
	...                 3. *UPDATE* values for all attributes from the table with only ``Identifier`` invalid\n\n
    ...                 4. *POST* example JSON to observation endpoint\n\n
	...                 5. *VALIDATE* the response status \n\n
    ...                 6. *VALIDATE* outcome against diagnostic text
    [Tags]             invalid    Identifier
    [Template]         create Observation Body Temperature JSON

#|  ressourceType  |          		ID   			|           meta         											|  	  status  	|                             									Identifier   						                            					  						                                                  			|                      				category                           					        						|                                        									code          										                            	                                                                                    	    	|         subject                       |	   DateTime	    |                      			    	  valueQuantity  			           		            |  dataabsentreason  |  R.-Code  |  ArrayNumber |         				                                                                                                                        diagnostics 							                                                                        |
#|                 |                				|  available  | 			profile  								|          		|  available  |  			coding.system						|  		coding.code  	|  							     system  		   				 	 |   		  value  		   |    assigner    |       reference          	|  available  |  codingavailable  |  				system  									   |    	 code       |  available  |  coding available  |  					0.system	  				|  		0.code	  |        0.display         |  				1.system  		|  		1.code	     |                   1.display                |          text   		|   available  |   Identifier-value  	|                   |  available  |		value	|    unit    	 |  			system      		   |    code    |                    |           |              |               				ENG								                                                                                      |                                         DE                                                              |
# invalid Identifier Coding System
    Observation    	        body-temperature  			true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      	test													OBI          		https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid			2020-02-25			true		  ${37.5}	     Cel	           http://unitsofmeasure.org    	   Cel			 false               422            0   		                            Coding.system must be an absolute reference, not a local reference                                                                                              Coding.system muss eine absolute Referenz sein, nicht eine lokale Referenz
	Observation    	        body-temperature  			true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      	${empty}												OBI          		https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid			2020-02-25			true		  ${37.5}	     Cel	           http://unitsofmeasure.org    	   Cel			 false               422            1    	 								@value cannot be empty                                                                                                               							@value kann nicht leer sein
	Observation    	        body-temperature  			true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      	${1234}													OBI          		https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid			2020-02-25			true		  ${37.5}	     Cel	           http://unitsofmeasure.org    	   Cel			 false               422            0    		                            Error parsing JSON: the primitive value must be a string                                                                                                        Fehler beim Parsen von JSON: Der primitive Wert muss ein String sein.
# invalid Identifier Coding Code
	Observation    	        body-temperature  			true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      	http://terminology.hl7.org/CodeSystem/v2-0203			${empty}          	https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid			2020-02-25			true		  ${37.5}	     Cel	           http://unitsofmeasure.org    	   Cel			 false               422            0    		                            @value cannot be empty                                                                                                              							@value kann nicht leer sein
	Observation    	        body-temperature  			true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      	http://terminology.hl7.org/CodeSystem/v2-0203			${1234}          	https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid			2020-02-25			true		  ${37.5}	     Cel	           http://unitsofmeasure.org    	   Cel			 false               422            0    		                            Error parsing JSON: the primitive value must be a string                                                                                                        Fehler beim Parsen von JSON: Der primitive Wert muss ein String sein.
# invalid Identifier System
	Observation    	        body-temperature  			true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      	http://terminology.hl7.org/CodeSystem/v2-0203			OBI          		${empty}        													  8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid			2020-02-25			true		  ${37.5}	     Cel	           http://unitsofmeasure.org    	   Cel			 false               422            0    		                            @value cannot be empty                                                                                                               							@value kann nicht leer sein
	Observation    	        body-temperature  			true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      	http://terminology.hl7.org/CodeSystem/v2-0203			OBI          		${1234}        													 	  8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid			2020-02-25			true		  ${37.5}	     Cel	           http://unitsofmeasure.org    	   Cel			 false               422            0    		                            Error parsing JSON: the primitive value must be a string                                                                                                        Fehler beim Parsen von JSON: Der primitive Wert muss ein String sein.
	Observation    	        body-temperature  			true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      	http://terminology.hl7.org/CodeSystem/v2-0203			OBI          		test       															  8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid			2020-02-25			true		  ${37.5}	     Cel	           http://unitsofmeasure.org    	   Cel			 false               422            0    		                            Identifier.system must be an absolute reference, not a local reference                                                                                          Identifier.system muss eine absolute Referenz sein, nicht eine lokale Referenz
# invalid Identifier Value
	Observation    	        body-temperature  			true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      	http://terminology.hl7.org/CodeSystem/v2-0203			OBI          		https://www.charite.de/fhir/CodeSystem/observation-identifiers        ${empty}          			   true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid			2020-02-25			true		  ${37.5}	     Cel	           http://unitsofmeasure.org    	   Cel			 false               422            0    		                            @value cannot be empty                                                                                                              							@value kann nicht leer sein
	Observation    	        body-temperature  			true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      	http://terminology.hl7.org/CodeSystem/v2-0203			OBI          		https://www.charite.de/fhir/CodeSystem/observation-identifiers        ${1234}           			   true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid			2020-02-25			true		  ${37.5}	     Cel	           http://unitsofmeasure.org    	   Cel			 false               422            0    		                            Error parsing JSON: the primitive value must be a string                                                                                                        Fehler beim Parsen von JSON: Der primitive Wert muss ein String sein.
# invalid Identifier Reference
	Observation    	        body-temperature  			true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      	http://terminology.hl7.org/CodeSystem/v2-0203			OBI          		https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          ${empty}       			 true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid			2020-02-25			true		  ${37.5}	     Cel	           http://unitsofmeasure.org    	   Cel			 false               422            1    		                            @value cannot be empty                                                                                                              							@value kann nicht leer sein
	Observation    	        body-temperature  			true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      	http://terminology.hl7.org/CodeSystem/v2-0203			OBI          		https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          ${1234}        			 true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid			2020-02-25			true		  ${37.5}	     Cel	           http://unitsofmeasure.org    	   Cel			 false               422            0    		                            Error parsing JSON: the primitive value must be a string                                                                                                        Fehler beim Parsen von JSON: Der primitive Wert muss ein String sein.
	Observation    	        body-temperature  			true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      	http://terminology.hl7.org/CodeSystem/v2-0203			OBI          		https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          missing      				 true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  					8310-5          Body Temperature          	http://snomed.info/sct          	386725007    	    Body Temperature (observable entity)        Body Temperature       		true    		   valid			2020-02-25			true		  ${37.5}	     Cel	           http://unitsofmeasure.org    	   Cel			 false               422            1    		                            A Reference without an actual reference or identifier should have a display                                                                                     A Reference without an actual reference or identifier should have a display


007 Create Body Temperature (invalid category)
	[Documentation]     1. *CREATE* new an EHR record\n\n 
	...                 2. *LOAD* _observation-example-body-temperature-robot.json_\n\n
	...                 3. *UPDATE* values for all attributes from the table with only ``Category`` invalid\n\n
    ...                 4. *POST* example JSON to observation endpoint\n\n
	...                 5. *VALIDATE* the response status \n\n
    ...                 6. *VALIDATE* outcome against diagnostic text
    [Tags]             invalid    Category
    [Template]         create Observation Body Temperature JSON

#|  ressourceType  |          		ID   			|           meta         											|  	  status  	|                             									Identifier   						                            					  						                                                  			|                      				category                           					        						|                                        									code          										                            	                                                                                    	    	|         subject                       |	   DateTime	    |                      			    	  valueQuantity  			           		            |  dataabsentreason  |  R.-Code  |  ArrayNumber |         				                                                                                                                        diagnostics 							                                                                        |
#|                 |                				|  available  | 			profile  								|          		|  available  |  			coding.system						|  		coding.code  	|  							     system  		   				 	 |   		  value  		   |    assigner    |       reference          	|  available  |  codingavailable  |  				system  									   |    	 code       |  available  |  coding available  |  					0.system	  				|  		0.code	  |        0.display         |  				1.system  		|  		1.code	     |                   1.display                |          text   		|   available  |   Identifier-value  	|                   |  available  |		value	|    unit    	 |  			system      		   |    code    |                    |           |              |               				ENG								                                                                                      |                                         DE                                                              |
# no category
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature       final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        false            true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5          Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   		${37.5}	     Cel	       http://unitsofmeasure.org    	   		Cel			 false               422           0    	 Observation.category: minimum required = 1, but only found 0                                                                                       https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature: mindestens erforderlich = Observation.category, aber nur gefunden Observation.category
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature       final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             false          http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5          Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   		${37.5}	     Cel	       http://unitsofmeasure.org    	   		Cel			 false               422           0    	 Object must have some content                                                                                                                      Objekt muss einen Inhalt haben
# invalid Category System
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature       final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://google.com										           vital-signs        true			   true			  				http://loinc.org		  				8310-5          Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   		${37.5}	     Cel	       http://unitsofmeasure.org    	   		Cel			 false               422           0    	 This element does not match any known slice defined in the profile https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature                                Dieses Element stimmt mit keinem bekannten Slice defined in the profile https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature überein.
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature       final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           test										                       vital-signs        true			   true			  				http://loinc.org		  				8310-5          Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   		${37.5}	     Cel	       http://unitsofmeasure.org    	   		Cel			 false               422           0    	 This element does not match any known slice defined in the profile https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature                                Dieses Element stimmt mit keinem bekannten Slice defined in the profile https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature überein.
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature       final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           ${123456789}                                                       vital-signs        true			   true			  				http://loinc.org		  				8310-5          Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   		${37.5}	     Cel	       http://unitsofmeasure.org    	   		Cel			 false               422           0    	 Error parsing JSON: the primitive value must be a string                                                                                           Fehler beim Parsen von JSON: Der primitive Wert muss ein String sein.
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature       final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           missing													           vital-signs        true			   true			  				http://loinc.org		  				8310-5          Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   		${37.5}	     Cel	       http://unitsofmeasure.org    	   		Cel			 false               422           2    	 A code with no system has no defined meaning. A system should be provided                                                                          A code with no system has no defined meaning. A system should be provided
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature       final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           ${EMPTY}                                                           vital-signs        true			   true			  				http://loinc.org		  				8310-5          Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   		${37.5}	     Cel	       http://unitsofmeasure.org    	   		Cel			 false               422           3    	 @value cannot be empty                                                                                                                             @value kann nicht leer sein
# invalid Category Code
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature       final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         test               true			   true			  				http://loinc.org		  				8310-5          Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   		${37.5}	     Cel	       http://unitsofmeasure.org    	   		Cel			 false               422           0    	 This element does not match any known slice defined in the profile https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature                                Dieses Element stimmt mit keinem bekannten Slice defined in the profile https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature überein.
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature       final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         ${12345}           true			   true			  				http://loinc.org		  				8310-5          Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   		${37.5}	     Cel	       http://unitsofmeasure.org    	   		Cel			 false               422           0    	 Error parsing JSON: the primitive value must be a string                                                                                           Fehler beim Parsen von JSON: Der primitive Wert muss ein String sein.
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature       final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         ${EMPTY}           true			   true			  				http://loinc.org		  				8310-5          Body Temperature          	http://snomed.info/sct         		     386725007     	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   		${37.5}	     Cel	       http://unitsofmeasure.org    	   		Cel			 false               422           2    	 @value cannot be empty                                                                                                                             @value kann nicht leer sein
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature       final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         missing            true			   true			  				http://loinc.org		  				8310-5          Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   		${37.5}	     Cel	       http://unitsofmeasure.org    	   		Cel			 false               422           0    	 This element does not match any known slice defined in the profile https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature                                Dieses Element stimmt mit keinem bekannten Slice defined in the profile https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature überein.


008 Create Body Temperature (invalid code)
	[Documentation]     1. *CREATE* new an EHR record\n\n 
	...                 2. *LOAD* _observation-example-body-temperature-robot.json_\n\n
	...                 3. *UPDATE* values for all attributes from the table with only ``Code`` invalid\n\n
    ...                 4. *POST* example JSON to observation endpoint\n\n
	...                 5. *VALIDATE* the response status \n\n
    ...                 6. *VALIDATE* outcome against diagnostic text
    [Tags]             invalid    Code
    [Template]         create Observation Body Temperature JSON

#|  ressourceType  |          		ID   			|           meta         											|  	  status  	|                             									Identifier   						                            					  						                                                  			|                      				category                           					        						|                                        									code          										                            	                                                                                    	    	|         subject                       |	   DateTime	    |                      			    	  valueQuantity  			           		            |  dataabsentreason  |  R.-Code  |  ArrayNumber |         				                                                                                                                        diagnostics 							                                                                        |
#|                 |                				|  available  | 			profile  								|          		|  available  |  			coding.system						|  		coding.code  	|  							     system  		   				 	 |   		  value  		   |    assigner    |       reference          	|  available  |  codingavailable  |  				system  									   |    	 code       |  available  |  coding available  |  					0.system	  				|  		0.code	  |        0.display         |  				1.system  		|  		1.code	     |                   1.display                |          text   		|   available  |   Identifier-value  	|                   |  available  |		value	|    unit    	 |  			system      		   |    code    |                    |           |              |               				ENG								                                                                                      |                                         DE                                                              |
# no code
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          	https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        false		   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   	${37.5}	     	Cel	       		http://unitsofmeasure.org    	   		Cel			 false               422           0    	 Observation.code: minimum required = 1, but only found 0                                                                                             https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature: mindestens erforderlich = Observation.code, aber nur gefunden Observation.code
# no coding
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          	https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   false		  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   	${37.5}	     	Cel	       		http://unitsofmeasure.org    	   		Cel			 false               422           0    	 inimum required = 1, but only found 0                                                                                                                https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature: mindestens erforderlich = Observation.code.coding, aber nur gefunden Observation.code.coding:HeartRateCode
# invalid Code Coding 0 System
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          	https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://google.com					  	8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   	${37.5}	     	Cel	       		http://unitsofmeasure.org    	   		Cel			 false               422           0    	 This element does not match any known slice defined in the profile https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature                                  Dieses Element stimmt mit keinem bekannten Slice defined in the profile https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature überein.
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          	https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				test            		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   	${37.5}	     	Cel	       		http://unitsofmeasure.org    	   		Cel			 false               422           0    	 Coding.system must be an absolute reference, not a local reference                                                                                   Coding.system muss eine absolute Referenz sein, nicht eine lokale Referenz
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          	https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				${12345}         		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   	${37.5}	     	Cel	       		http://unitsofmeasure.org    	   		Cel			 false               422           0    	 Error parsing JSON: the primitive value must be a string                                                                                             Fehler beim Parsen von JSON: Der primitive Wert muss ein String sein.
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          	https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				${EMPTY}         		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   	${37.5}	     	Cel	       		http://unitsofmeasure.org    	   		Cel			 false               422           1    	 @value cannot be empty                                                                                                                               @value kann nicht leer sein
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          	https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				missing         		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   	${37.5}	    	Cel	       		http://unitsofmeasure.org    	   		Cel			 false               422           0    	 A code with no system has no defined meaning. A system should be provided                                                                            A code with no system has no defined meaning. A system should be provided
# invalid Code Coding 0 Code
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          	https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				test	       Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   	${37.5}	     	Cel	       		http://unitsofmeasure.org    	   		Cel			 false               422           0    	 This element does not match any known slice defined in the profile https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature                                  Dieses Element stimmt mit keinem bekannten Slice defined in the profile https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature überein.
    Observation    	   		body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          	https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				${12345}       Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   	${37.5}	     	Cel	       		http://unitsofmeasure.org    	   		Cel			 false               422           0    	 Error parsing JSON: the primitive value must be a string                                                                                             Fehler beim Parsen von JSON: Der primitive Wert muss ein String sein.
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          	https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				${EMPTY}       Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   	${37.5}	     	Cel	       		http://unitsofmeasure.org    	   		Cel			 false               422           0    	 @value cannot be empty                                                                                                                               @value kann nicht leer sein
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          	https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				missing	       Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   	${37.5}	     	Cel	       		http://unitsofmeasure.org    	   		Cel			 false               422           0    	 This element does not match any known slice defined in the profile https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature                                  Dieses Element stimmt mit keinem bekannten Slice defined in the profile https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature überein.
# invalid Code Coding 0 Display
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          	https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         ${12345}          			http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   	${37.5}	     	Cel	       		http://unitsofmeasure.org    	   		Cel			 false               422           0    	 Error parsing JSON: the primitive value must be a string                                                                                             Fehler beim Parsen von JSON: Der primitive Wert muss ein String sein.
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          	https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         ${EMPTY}          			http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   	${37.5}	     	Cel	       		http://unitsofmeasure.org    	   		Cel			 false               422           0    	 @value cannot be empty                                                                                                                               @value kann nicht leer sein
# invalid Code Coding 1 System
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          	https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	test	                     		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   	${37.5}	     	Cel	       		http://unitsofmeasure.org    	   		Cel			 false               422           0    	 Coding.system must be an absolute reference, not a local reference                                                                                   Coding.system muss eine absolute Referenz sein, nicht eine lokale Referenz
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          	https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	${12345}                    		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   	${37.5}	     	Cel	       		http://unitsofmeasure.org    	   		Cel			 false               422           0    	 Error parsing JSON: the primitive value must be a string                                                                                             Fehler beim Parsen von JSON: Der primitive Wert muss ein String sein.
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          	https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	${EMPTY}         		                 386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   	${37.5}	     	Cel	       		http://unitsofmeasure.org    	   		Cel			 false               422           0    	 A code with no system has no defined meaning. A system should be provided                                                                            A code with no system has no defined meaning. A system should be provided
# invalid Code Coding 1 Code
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          	https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     ${12345}      	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   	${37.5}	     	Cel	       		http://unitsofmeasure.org    	   		Cel			 false               422           0    	 Error parsing JSON: the primitive value must be a string                                                                                             Fehler beim Parsen von JSON: Der primitive Wert muss ein String sein.
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          	https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     ${EMPTY}      	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   	${37.5}	     	Cel	       		http://unitsofmeasure.org    	   		Cel			 false               422           0    	 @value cannot be empty                                                                                                                               @value kann nicht leer sein
# invalid Code Coding 0 Display
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          	https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   ${12345}                              	   Body Temperature        true    		 	valid      		  		2020-02-25		  true		   	${37.5}	     	Cel	       		http://unitsofmeasure.org    	   		Cel			 false               422           0    	 Error parsing JSON: the primitive value must be a string                                                                                             Fehler beim Parsen von JSON: Der primitive Wert muss ein String sein.
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          	https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   ${EMPTY}                              	   Body Temperature        true    		 	valid      		  		2020-02-25		  true		   	${37.5}	     	Cel	       		http://unitsofmeasure.org    	   		Cel			 false               422           0    	 @value cannot be empty                                                                                                                               @value kann nicht leer sein
# invalid Code Text
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          	https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        ${12345}          	   true    		 	valid      		  		2020-02-25		  true		   	${37.5}	     	Cel	       		http://unitsofmeasure.org    	   		Cel			 false               422           0    	 Error parsing JSON: the primitive value must be a string                                                                                             Fehler beim Parsen von JSON: Der primitive Wert muss ein String sein.
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          	https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature           true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        ${EMPTY}          	   true    		 	valid      		  		2020-02-25		  true		   	${37.5}	     	Cel	       		http://unitsofmeasure.org    	   		Cel			 false               422           0    	 @value cannot be empty                                                                                                                               @value kann nicht leer sein


009 Create Body Temperature (invalid subject)
	[Documentation]     1. *CREATE* new an EHR record\n\n 
	...                 2. *LOAD* _observation-example-body-temperature-robot.json_\n\n
	...                 3. *UPDATE* values for all attributes from the table with only ``Subject`` invalid\n\n
    ...                 4. *POST* example JSON to observation endpoint\n\n
	...                 5. *VALIDATE* the response status \n\n
    ...                 6. *VALIDATE* outcome against diagnostic text
    [Tags]             invalid    Subject
    [Template]         create Observation Body Temperature JSON

#|  ressourceType  |          		ID   			|           meta         											|  	  status  	|                             									Identifier   						                            					  						                                                  			|                      				category                           					        						|                                        									code          										                            	                                                                                    	    	|         subject                       |	   DateTime	    |                      			    	  valueQuantity  			           		            |  dataabsentreason  |  R.-Code  |  ArrayNumber |         				                                                                                                                        diagnostics 							                                                                        |
#|                 |                				|  available  | 			profile  								|          		|  available  |  			coding.system						|  		coding.code  	|  							     system  		   				 	 |   		  value  		   |    assigner    |       reference          	|  available  |  codingavailable  |  				system  									   |    	 code       |  available  |  coding available  |  					0.system	  				|  		0.code	  |        0.display         |  				1.system  		|  		1.code	     |                   1.display                |          text   		|   available  |   Identifier-value  	|                   |  available  |		value	|    unit    	 |  			system      		   |    code    |                    |           |              |               				ENG								                                                                                      |                                         DE                                                              |
# no subject
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        false    	 	valid      		  2020-02-25		  true		   ${37.5}	     Cel	       http://unitsofmeasure.org    	   Cel			 false               422           0    	 Observation.subject: minimum required = 1, but only found 0                                                                                          https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature: mindestens erforderlich = Observation.subject, aber nur gefunden Observation.subject
# invalid reference
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	${12345}     	  2020-02-25		  true		   ${37.5}	     Cel	       http://unitsofmeasure.org    	   Cel			 false               422           0    	 Error parsing JSON: the primitive value must be a string                                                                                             Fehler beim Parsen von JSON: Der primitive Wert muss ein String sein.
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	${EMPTY}     	  2020-02-25		  true		   ${37.5}	     Cel	       http://unitsofmeasure.org    	   Cel			 false               422           1    	 All FHIR elements must have a @value                                                                                                                 All FHIR elements must have a @value
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	missing      	  2020-02-25		  true		   ${37.5}	     Cel	       http://unitsofmeasure.org    	   Cel			 false               422           0    	 Subject identifier is required                                                                                                                       Subject identifier is required


010 Create Body Temperature (invalid DateTime)
	[Documentation]     1. *CREATE* new an EHR record\n\n 
	...                 2. *LOAD* _observation-example-body-temperature-robot.json_\n\n
	...                 3. *UPDATE* values for all attributes from the table with only ``effectiveDateTime`` invalid\n\n
    ...                 4. *POST* example JSON to observation endpoint\n\n
	...                 5. *VALIDATE* the response status \n\n
    ...                 6. *VALIDATE* outcome against diagnostic text
    [Tags]             invalid    DateTime
    [Template]         create Observation Body Temperature JSON

#|  ressourceType  |          		ID   			|           meta         											|  	  status  	|                             									Identifier   						                            					  						                                                  			|                      				category                           					        						|                                        									code          										                            	                                                                                    	    	|         subject                       |	   DateTime	    |                      			    	  valueQuantity  			           		            |  dataabsentreason  |  R.-Code  |  ArrayNumber |         				                                                                                                                        diagnostics 							                                                                        |
#|                 |                				|  available  | 			profile  								|          		|  available  |  			coding.system						|  		coding.code  	|  							     system  		   				 	 |   		  value  		   |    assigner    |       reference          	|  available  |  codingavailable  |  				system  									   |    	 code       |  available  |  coding available  |  					0.system	  				|  		0.code	  |        0.display         |  				1.system  		|  		1.code	     |                   1.display                |          text   		|   available  |   Identifier-value  	|                   |  available  |		value	|    unit    	 |  			system      		   |    code    |                    |           |              |               				ENG								                                                                                      |                                         DE                                                              |
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		202-02-25		      true		   ${37.5}	     Cel	       http://unitsofmeasure.org    	   		Cel			 false               422           0    	 is outside the range of reasonable years - check for data entry error                                                                                liegt außerhalb des Bereichs vernünftiger Jahre - Prüfung auf Dateneingabefehler
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-13-25		  	  true		   ${37.5}	     Cel	       http://unitsofmeasure.org    	   		Cel			 false               422           1    	 Not a valid date/time                                                                                                                                Kein gültiges Datum/Uhrzeit
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-32		  	  true		   ${37.5}	     Cel	       http://unitsofmeasure.org    	   		Cel			 false               422           1    	 Not a valid date/time                                                                                                                                Kein gültiges Datum/Uhrzeit
    Observation      	    body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		test     		      true		   ${37.5}	     Cel	       http://unitsofmeasure.org    	   		Cel			 false               422           0    	 Datetime must be at least to day                                                                                                            is dateTime and has a value then that value shall be precise to the day
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		${12345}		      true		   ${37.5}	     Cel	       http://unitsofmeasure.org    	   		Cel			 false               422           1    	 Datetime must be at least to day                                                                                                           is dateTime and has a value then that value shall be precise to the day
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		${EMPTY}		      true		   ${37.5}	     Cel	       http://unitsofmeasure.org    	   		Cel			 false               422           1    	 @value cannot be empty                                                                                                                               @value kann nicht leer sein
    Observation     	    body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		missing  		      true		   ${37.5}	     Cel	       http://unitsofmeasure.org    	   		Cel			 false               422           0    	 minimum required = 1, but only found 0                                                                                                               https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature: mindestens erforderlich = Observation.effective


011 Create Body Temperature (invalid valueQuantity)
	[Documentation]     1. *CREATE* new an EHR record\n\n 
	...                 2. *LOAD* _observation-example-body-temperature-robot.json_\n\n
	...                 3. *UPDATE* values for all attributes from the table with only ``valueQuantity`` invalid\n\n
    ...                 4. *POST* example JSON to observation endpoint\n\n
	...                 5. *VALIDATE* the response status \n\n
    ...                 6. *VALIDATE* outcome against diagnostic text
    [Tags]             invalid    valueQuantity
    [Template]         create Observation Body Temperature JSON

#|  ressourceType  |          		ID   			|           meta         											|  	  status  	|                             									Identifier   						                            					  						                                                  			|                      				category                           					        						|                                        									code          										                            	                                                                                    	    	|         subject                       |	   DateTime	    |                      			    	  valueQuantity  			           		            |  dataabsentreason  |  R.-Code  |  ArrayNumber |         				                                                                                                                        diagnostics 							                                                                        |
#|                 |                				|  available  | 			profile  								|          		|  available  |  			coding.system						|  		coding.code  	|  							     system  		   				 	 |   		  value  		   |    assigner    |       reference          	|  available  |  codingavailable  |  				system  									   |    	 code       |  available  |  coding available  |  					0.system	  				|  		0.code	  |        0.display         |  				1.system  		|  		1.code	     |                   1.display                |          text   		|   available  |   Identifier-value  	|                   |  available  |		value	|    unit    	 |  			system      		   |    code    |                    |           |              |               				ENG								                                                                                      |                                         DE                                                              |
# no valueQuantity & no dataabsentreason
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	false		   ${37.5}	     Cel	       http://unitsofmeasure.org    	   		Cel			 false               422           0    	 If there is no component or hasMember element then either a value                                                                                    If there is no component or hasMember element then either a value
# invalid value
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${EMPTY}	     Cel	       http://unitsofmeasure.org    	   		Cel			 false               422           0    	 Error parsing JSON: the primitive value must be a number                                                                                             Fehler beim Parsen von JSON: Der primitive Wert muss eine Zahl sein.
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   test  	     Cel	       http://unitsofmeasure.org    	   		Cel			 false               422           0    	 Error parsing JSON: the primitive value must be a number                                                                                             Fehler beim Parsen von JSON: Der primitive Wert muss eine Zahl sein.
    Observation     	    body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   missing	     Cel	       http://unitsofmeasure.org    	   		Cel			 false               422           0    	 minimum required = 1, but only found 0                                                                                                               https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature: mindestens erforderlich = Observation.value
# invalid unit
    Observation     	    body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     ${12345}	   http://unitsofmeasure.org    	   		Cel			 false               422           0    	 Error parsing JSON: the primitive value must be a string                                                                                             Fehler beim Parsen von JSON: Der primitive Wert muss ein String sein.
    Observation     	    body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     ${EMPTY}	   http://unitsofmeasure.org    	   		Cel			 false               422           0    	 @value cannot be empty                                                                                                                               @value kann nicht leer sein
    Observation     	    body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     missing	   http://unitsofmeasure.org    	   		Cel			 false               422           0    	 minimum required = 1, but only found 0                                                                                                               https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature: mindestens erforderlich = Observation.value
# invalid system
    Observation      	    body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     Cel	       http://google.com	         	   		Cel			 false               422           0    	 Value is 'http://google.com' but must be                                                                                                             Der Wert ist
    Observation    	    	body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     Cel	       test                         	   		Cel			 false               422           0    	 Coding.system must be an absolute reference, not a local reference                                                                                   Coding.system muss eine absolute Referenz sein, nicht eine lokale Referenz
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     Cel	       ${12345}                      	   		Cel			 false               422           0    	 Error parsing JSON: the primitive value must be a string                                                                                             Fehler beim Parsen von JSON: Der primitive Wert muss ein String sein.
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     Cel	       ${EMPTY}                      	   		Cel			 false               422           0    	 A code with no system has no defined meaning. A system should be provided                                                                            A code with no system has no defined meaning. A system should be provided
    Observation      	    body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     Cel	       missing                      	   		Cel			 false               422           1    	 A code with no system has no defined meaning. A system should be provided                                                                            A code with no system has no defined meaning. A system should be provided
# invalid code
#   Observation     	    body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     Cel	       http://unitsofmeasure.org    	   		test		 false               422           1    	 Value is                                                                                                                                             Der Wert ist
# Invalid test for valueQ.code = 'test' delivers a 201 response ???
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     Cel	       http://unitsofmeasure.org    	  		${12345}     false               422           0    	 Error parsing JSON: the primitive value must be a string                                                                                             Fehler beim Parsen von JSON: Der primitive Wert muss ein String sein.
    Observation      	    body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     Cel	       http://unitsofmeasure.org    	  		${EMPTY}	 false               422           0    	 @value cannot be empty                                                                                                                               @value kann nicht leer sein
    Observation      	    body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     Cel	       http://unitsofmeasure.org    	  		${EMPTY}	 false               422           0    	 @value cannot be empty                                                                                                                               @value kann nicht leer sein
    Observation      	    body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     Cel	       http://unitsofmeasure.org    	   		missing		 false               422           0    	 minimum required = 1, but only found 0                                                                                                               https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature: mindestens erforderlich = Observation.value


012 Create Body Temperature (invalid DataAbsentReason)
	[Documentation]     1. *CREATE* new an EHR record\n\n 
	...                 2. *LOAD* _observation-example-body-temperature-robot.json_\n\n
	...                 3. *UPDATE* values for all attributes from the table with only ``DataAbsentReason`` invalid\n\n
    ...                 4. *POST* example JSON to observation endpoint\n\n
	...                 5. *VALIDATE* the response status \n\n
    ...                 6. *VALIDATE* outcome against diagnostic text
    [Tags]             invalid    DataAbsentReason
    [Template]         create Observation Body Temperature JSON

#|  ressourceType  |          		ID   			|           meta         											|  	  status  	|                             									Identifier   						                            					  						                                                  			|                      				category                           					        						|                                        									code          										                            	                                                                                    	    	|         subject                       |	   DateTime	    |                      			    	  valueQuantity  			           		            |  dataabsentreason  |  R.-Code  |  ArrayNumber |         				                                                                                                                        diagnostics 							                                                                        |
#|                 |                				|  available  | 			profile  								|          		|  available  |  			coding.system						|  		coding.code  	|  							     system  		   				 	 |   		  value  		   |    assigner    |       reference          	|  available  |  codingavailable  |  				system  									   |    	 code       |  available  |  coding available  |  					0.system	  				|  		0.code	  |        0.display         |  				1.system  		|  		1.code	     |                   1.display                |          text   		|   available  |   Identifier-value  	|                   |  available  |		value	|    unit    	 |  			system      		   |    code    |                    |           |              |               				ENG								                                                                                      |                                         DE                                                              |
# DataAbsentReason and  valueQuantity
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  true		   		${37.5}	     Cel	       http://unitsofmeasure.org    	   		Cel			 truevalid           201           0    	 dataAbsentReason SHALL only be present if Observation.value                                                                                          ${EMPTY}
# invalid DataAbsentReason
#    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  	2020-02-25		  false		   		${37.5}	     Cel	       http://unitsofmeasure.org    	   		Cel			 truevalid           422           0    	 dataAbsentReason SHALL only be present if Observation.value                                                                                          ${EMPTY}


013 Create Body Temperature (invalid multi)
	[Documentation]     1. *CREATE* new an EHR record\n\n 
	...                 2. *LOAD* _observation-example-body-temperature-robot.json_\n\n
	...                 3. *UPDATE* values for all attributes from the table with multible invalid values \n\n
    ...                 4. *POST* example JSON to observation endpoint\n\n
	...                 5. *VALIDATE* the response status \n\n
    ...                 6. *VALIDATE* outcome against diagnostic text
    [Tags]             invalid    multi
    [Template]         create Observation Body Temperature JSON
    
#|  ressourceType  |          		ID   			|           meta         											|  	  status  	|                             									Identifier   						                            					  						                                                  			|                      				category                           					        						|                                        									code          										                            	                                                                                    	    	|         subject                       |	   DateTime	    |                      			    	  valueQuantity  			           		            |  dataabsentreason  |  R.-Code  |  ArrayNumber |         				                                                                                                                          diagnostics 							                                                                        |
#|                 |                				|  available  | 			profile  								|          		|  available  |  			coding.system						|  		coding.code  	|  							     system  		   				 	 |   		  value  		   |    assigner    |       reference          	|  available  |  codingavailable  |  				system  									   |    	 code       |  available  |  coding available  |  					0.system	  				|  		0.code	  |        0.display         |  				1.system  		|  		1.code	     |                   1.display                |          text   		|   available  |   Identifier-value  	|                   |  available  |		value	|    unit    	 |  			system      		   |    code    |                    |           |              |               				ENG								                                                                                      |                                         DE                                                              |
# all attributes invalid for valueQuantity
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${EMPTY}	     ${EMPTY}	       ${EMPTY}    	                     ${EMPTY}		 false               422           1    	 @value cannot be empty                                                                                                                                @value kann nicht leer sein
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   test	         ${1234}	       test      	                     ${1234}		 false               422           2    	 Error parsing JSON: the primitive value must be a string                                                                                              Fehler beim Parsen von JSON: Der primitive Wert muss ein String sein.
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   missing	     ${EMPTY}	       http://google.com                 test   		 false               422           1    	 All FHIR elements must have a @value or childre                                                                                                       All FHIR elements must have a @value or childre
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${EMPTY}	     missing	       test    	                         missing		 false               422           5    	 minimum required = 1, but only found 0                                                                                                                https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature: mindestens erforderlich = Observation.value
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${EMPTY}	     ${1234}	       missing 	                         test   		 false               422           3    	 A code with no system has no defined meaning. A system should be provided                                                                             A code with no system has no defined meaning. A system should be provided
# all attributes invalid for code 
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   false		  				http://loinc.org		  				8310-5         Body Temperature          	${EMPTY}            		          	 ${12345}    	   Body Temperature (observable entity)        ${12345}          	   true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     Cel	       	   http://unitsofmeasure.org    	   Cel			 false               422           0    	 minimum required = 1, but only found 0                                                                                                                https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature: mindestens erforderlich = Observation.code.coding, aber nur gefunden Observation.code.coding:HeartRateCode
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				${EMPTY}             	  			    ${EMPTY}       ${EMPTY}          			${EMPTY}         		              	 ${EMPTY}    	   ${EMPTY}                              	   ${EMPTY}          	   true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     Cel	       	   http://unitsofmeasure.org    	   Cel			 false               422           6    	 @value cannot be empty                                                                                                                                @value kann nicht leer sein
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://google.com		  				${12345}       missing          			test                         		  	 missing    	   ${12345}                              	   missing           	   true    		 	valid      		  		2020-02-25		 	true		   ${37.5}	     Cel	       	   http://unitsofmeasure.org    	   Cel			 false               422           5    	 minimum required = 1, but only found 0                                                                                                                https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature: mindestens erforderlich = Observation.code.coding, aber nur gefunden Observation.code.coding:HeartRateCode
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				test            		  				missing        ${12345}          			${12345}                     		  	 missing    	   test12345                             	   ${EMPTY}          	   true    		 	valid      		  		2020-02-25		 	true		   ${37.5}	     Cel	       	   http://unitsofmeasure.org    	   Cel			 false               422           8    	 minimum required = 1, but only found 0                                                                                                                https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature: mindestens erforderlich = Observation.code.coding, aber nur gefunden Observation.code.coding:HeartRateCode
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				missing         		  				test           test1234          			${12345}                    	      	 ${EMPTY}    	   missing                               	   ${12345}          	   true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     Cel	       	   http://unitsofmeasure.org    	   Cel			 false               422           8    	 minimum required = 1, but only found 0                                                                                                                https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature: mindestens erforderlich = Observation.code.coding, aber nur gefunden Observation.code.coding:HeartRateCode
# all attributes invalid for category
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           http://google.com                                                  test               true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     Cel	       	   http://unitsofmeasure.org    	   Cel			 false               422           0    	 This element does not match any known slice defined in the profile https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature                                  Dieses Element stimmt mit keinem bekannten Slice defined in the profile https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature überein.
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           missing                                                            ${EMPTY}           true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     Cel	       	   http://unitsofmeasure.org    	   Cel			 false               422           1    	 minimum required = 1, but only found 0                                                                                                                https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature: mindestens erforderlich = Observation.category, aber nur gefunden Observation.category:VSCat
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           ${EMPTY}                                                           ${12345}           true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     Cel	       	   http://unitsofmeasure.org    	   Cel			 false               422           4    	 @value cannot be empty                                                                                                                                @value kann nicht leer sein
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           ${12345}                                                           missing            true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     Cel	       	   http://unitsofmeasure.org    	   Cel			 false               422           0    	 Error parsing JSON: the primitive value must be a string                                                                                              Fehler beim Parsen von JSON: Der primitive Wert muss ein String sein.
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      http://terminology.hl7.org/CodeSystem/v2-0203            OBI          https://www.charite.de/fhir/CodeSystem/observation-identifiers        8310-5_BodyTemperature              true          Organization/Charité        true             true           test                                                               ${EMPTY}           true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     Cel	       	   http://unitsofmeasure.org    	   Cel			 false               422           1    	 minimum required = 1, but only found 0                                                                                                                https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature: mindestens erforderlich = Observation.category, aber nur gefunden Observation.category:VSCat
# all attributes invalid for identifier
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      ${1234}                                                missing        ${EMPTY}                                                              ${EMPTY}                      	  true          	${1234}                 true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     Cel	       	   http://unitsofmeasure.org    	   Cel			 false               422           5    	 @value cannot be empty                                                                                                                                @value kann nicht leer sein
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      test                                                   ${1234}        missing                                                               ${1234}                       	  true          	missing                 true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     Cel	       	   http://unitsofmeasure.org    	   Cel			 false               422           3    	 Coding.system must be an absolute reference, not a local reference                                                                                    Coding.system muss eine absolute Referenz sein, nicht eine lokale Referenz
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      ${EMPTY}                                               ${EMPTY}       ${1234}                                                               missing                       	  false         	Organization/Charité    true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     Cel	       	   http://unitsofmeasure.org    	   Cel			 false               422           4    	 @value cannot be empty                                                                                                                                @value kann nicht leer sein
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      missing                                                ${12345}       test                                                                  ${EMPTY}                      	  true          	${1234}                 true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     Cel	       	   http://unitsofmeasure.org    	   Cel			 false               422           4    	 @value cannot be empty                                                                                                                                @value kann nicht leer sein
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      ${EMPTY}                                               ${EMPTY}       ${EMPTY}                                                              ${EMPTY}                      	  true          	${EMPTY}                true             true           http://terminology.hl7.org/CodeSystem/observation-category         vital-signs        true			   true			  				http://loinc.org		  				8310-5         Body Temperature          	http://snomed.info/sct         		     386725007    	   Body Temperature (observable entity)        Body Temperature        true    		 	valid      		  		2020-02-25		  	true		   ${37.5}	     Cel	       	   http://unitsofmeasure.org    	   Cel			 false               422           6    	 @value cannot be empty                                                                                                                                @value kann nicht leer sein
# mix invalid attributes
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      test                                                   ${1234}        ${1234}                                                               ${1234}                       	  true          	${1234}                 true             true           ${1234}                                                            ${1234}            true			   true			  				${1234}          		  				${1234}        ${1234}          			${1234}                      		   	 ${1234}           ${1234}                               	   ${1234}           	   true    		 	valid      		  		2020-02-25		  	true		   test  	     ${1234}	       ${1234}                      	 ${1234}		 false               422          29    	 Value is '1234' but must be                                                                                                                     Wert ist
    ${1234}      	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      test                                                   ${1234}        ${1234}                                                               ${1234}                       	  true          	${1234}                 true             true           ${1234}                                                            ${1234}            true			   true			  				${1234}          		  				${1234}        ${1234}          			${1234}                      		   	 ${1234}           ${1234}                               	   ${1234}           	   true    		 	valid      		  		2020-02-25		  	true		   test  	     ${1234}	       ${1234}                      	 ${1234}		 false               422           0    	 This does not appear to be a FHIR resource                                                                                                           Dies scheint keine FHIR-Ressource zu sein
    Observation    	        ${1234}      					true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      test                                                   ${1234}        ${1234}                                                               ${1234}                       	  true          	${1234}                 true             true           ${1234}                                                            ${1234}            true			   true			  				${1234}          		  				${1234}        ${1234}          			${1234}                      		   	 ${1234}           ${1234}                               	   ${1234}           	   true    		 	valid      		  		2020-02-25		  	true		   test  	     ${1234}	       ${1234}                      	 ${1234}		 false               422          30    	 Value is '1234' but must be                                                                                                                     Wert ist
    Observation    	        body-temperature  				false       https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final			true      test                                                   ${1234}        ${1234}                                                               ${1234}                       	  true          	${1234}                 true             true           ${1234}                                                            ${1234}            true			   true			  				${1234}          		  				${1234}        ${1234}          			${1234}                      		   	 ${1234}           ${1234}                               	   ${1234}           	   true    		 	valid      		  		2020-02-25		  	true		   test  	     ${1234}	       ${1234}                      	 ${1234}		 false               422          23    	 The value 'test' is not a valid decimal                                                                                                              ist kein gültiger Dezimalwert.
    Observation    	        body-temperature  				true        ${1234}                                                 final			true      test                                                   ${1234}        ${1234}                                                               ${1234}                       	  true          	${1234}                 true             true           ${1234}                                                            ${1234}            true			   true			  				${1234}          		  				${1234}        ${1234}          			${1234}                      		   	 ${1234}           ${1234}                               	   ${1234}           	   true    		 	valid      		  		2020-02-25		  	true		   test  	     ${1234}	       ${1234}                      	 ${1234}		 false               422          26    	 Profile reference '1234' has not been checked because it is unknown                                                                              konnte nicht aufgelöst werden, wurde also nicht überprüft
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        ${1234}			true      test                                                   ${1234}        ${1234}                                                               ${1234}                       	  true          	${1234}                 true             true           ${1234}                                                            ${1234}            true			   true			  				${1234}          		  				${1234}        ${1234}          			${1234}                      		     ${1234}           ${1234}                               	   ${1234}           	   true    		 	valid      		  		2020-02-25		  	true		   test  	     ${1234}	       ${1234}                      	 ${1234}		 false               422          30    	 Value is '1234' but must be                                                                                                                     Wert ist
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final  			false     test                                                   ${1234}        ${1234}                                                               ${1234}                       	  true          	${1234}                 true             true           ${1234}                                                            ${1234}            true			   true			  				${1234}          		  				${1234}        ${1234}          			${1234}                      		     ${1234}           ${1234}                               	   ${1234}           	   true    		 	valid      		  		2020-02-25		  	true		   test  	     ${1234}	       ${1234}                      	 ${1234}		 false               422          23    	 Value is '1234' but must be                                                                                                                     Wert ist
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final  			true      test                                                   ${1234}        ${1234}                                                               ${1234}                       	  false         	${1234}                 true             true           ${1234}                                                            ${1234}            true			   true			  				${1234}          		  				${1234}        ${1234}          			${1234}                      		     ${1234}           ${1234}                               	   ${1234}           	   true    		 	valid      		  		2020-02-25		  	true		   test  	     ${1234}	       ${1234}                      	 ${1234}		 false               422          28    	 Value is '1234' but must be                                                                                                                     Wert ist
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final  			true      test                                                   ${1234}        ${1234}                                                               ${1234}                       	  true          	${1234}                 false            true           ${1234}                                                            ${1234}            true			   true			  				${1234}          		  				${1234}        ${1234}          			${1234}                      		     ${1234}           ${1234}                               	   ${1234}           	   true    		 	valid      		  		2020-02-25		  	true		   test  	     ${1234}	       ${1234}                      	 ${1234}		 false               422          26    	 Value is '1234' but must be                                                                                                                     Wert ist
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final  			true      test                                                   ${1234}        ${1234}                                                               ${1234}                       	  true          	${1234}                 true             false          ${1234}                                                            ${1234}            true			   true			  				${1234}          		  				${1234}        ${1234}          			${1234}                      		     ${1234}           ${1234}                               	   ${1234}           	   true    		 	valid      		  		2020-02-25		  	true		   test  	     ${1234}	       ${1234}                      	 ${1234}		 false               422          27    	 Value is '1234' but must be                                                                                                                     Wert ist
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final  			true      test                                                   ${1234}        ${1234}                                                               ${1234}                       	  true          	${1234}                 true             true           ${1234}                                                            ${1234}            false			   true			  				${1234}          		  				${1234}        ${1234}          			${1234}                      		     ${1234}           ${1234}                               	   ${1234}           	   true    		 	valid      		  		2020-02-25		  	true		   test  	     ${1234}	       ${1234}                      	 ${1234}		 false               422          18    	 Value is '1234' but must be                                                                                                                     Wert ist
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final  			true      test                                                   ${1234}        ${1234}                                                               ${1234}                       	  true          	${1234}                 true             true           ${1234}                                                            ${1234}            true			   false			  			${1234}          		  				${1234}        ${1234}          			${1234}                      		     ${1234}           ${1234}                               	   ${1234}           	   true    		 	valid      		  		2020-02-25		  	true		   test  	     ${1234}	       ${1234}                      	 ${1234}		 false               422          20   	     Value is '1234' but must be                                                                                                                     Wert ist
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final  			true      test                                                   ${1234}        ${1234}                                                               ${1234}                       	  true          	${1234}                 true             true           ${1234}                                                            ${1234}            true			   true 			  			${1234}          		  				${1234}        ${1234}          			${1234}                      		     ${1234}           ${1234}                               	   ${1234}           	   false    	 	valid      		  		2020-02-25		  	true		   test  	     ${1234}	       ${1234}                      	 ${1234}		 false               422          30    	 Value is '1234' but must be                                                                                                                     Wert ist
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final  			true      test                                                   ${1234}        ${1234}                                                               ${1234}                       	  true          	${1234}                 true             true           ${1234}                                                            ${1234}            true			   false			  			${1234}          		  				${1234}        ${1234}          			${1234}                      		     ${1234}           ${1234}                               	   ${1234}           	   true    		 	test      		  		2020-02-25		  	true		   test  	     ${1234}	       ${1234}                      	 ${1234}		 false               422          19    	 Value is '1234' but must be                                                                                                                     Wert ist
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final  			true      test                                                   ${1234}        ${1234}                                                               ${1234}                       	  true          	${1234}                 true             true           ${1234}                                                            ${1234}            true			   false			  			${1234}          		  				${1234}        ${1234}          			${1234}                      		     ${1234}           ${1234}                               	   ${1234}           	   true    		 	valid      		  		${12345}		    true		   test  	     ${1234}	       ${1234}                      	 ${1234}		 false               422          24    	 Value is '1234' but must be                                                                                                                     Wert ist
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final  			true      test                                                   ${1234}        ${1234}                                                               ${1234}                       	  true          	${1234}                 true             true           ${1234}                                                            ${1234}            true			   false			  			${1234}          		  				${1234}        ${1234}          			${1234}                      		     ${1234}           ${1234}                               	   ${1234}           	   true    		 	valid      		  		2020-02-25		  	false		   test  	     ${1234}	       ${1234}                      	 ${1234}		 false               422          12    	 minimum required = 1, but only found 0                                                                                                                https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature: mindestens erforderlich = Observation.code.coding, aber nur gefunden Observation.code.coding:HeartRateCode
    Observation    	        body-temperature  				true        https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/body-temperature        final  			true      test                                                   ${1234}        ${1234}                                                               ${1234}                       	  true          	${1234}                 true             true           ${1234}                                                            ${1234}            true			   false			  			${1234}          		  				${1234}        ${1234}          			${1234}                      		     ${1234}           ${1234}                               	   ${1234}           	   true    		 	valid      		  		2020-02-25		  	true		   test  	     ${1234}	       ${1234}                      	 ${1234}		 true                422          19    	 Value is '1234' but must be                                                                                                                     Wert ist


*** Keywords ***

# oooo    oooo oooooooooooo oooooo   oooo oooooo   oooooo     oooo   .oooooo.   ooooooooo.   oooooooooo.    .oooooo..o
# `888   .8P'  `888'     `8  `888.   .8'   `888.    `888.     .8'   d8P'  `Y8b  `888   `Y88. `888'   `Y8b  d8P'    `Y8
#  888  d8'     888           `888. .8'     `888.   .8888.   .8'   888      888  888   .d88'  888      888 Y88bo.
#  88888[       888oooo8       `888.8'       `888  .8'`888. .8'    888      888  888ooo88P'   888      888  `"Y8888o.
#  888`88b.     888    "        `888'         `888.8'  `888.8'     888      888  888`88b.     888      888      `"Y88b
#  888  `88b.   888       o      888           `888'    `888'      `88b    d88'  888  `88b.   888     d88' oo     .d8P
# o888o  o888o o888ooooood8     o888o           `8'      `8'        `Y8bood8P'  o888o  o888o o888bood8P'   8""88888P'
#
# [ HIGH LEVEL KEYWORDS ]

create Observation Body Temperature JSON
    [Arguments]         ${resourceType}    ${ID}    ${meta}    ${profile}    ${status}     ${Identifieravailable}
    ...                 ${Identifiercodingsystem}    ${Identifiercodingcode}    ${Identifiersystem}
    ...                 ${Identifiervalue}    ${Identifierassigner}    ${Identifierreference}
    ...                 ${categoryavailable}    ${categorycodingavailable}    ${categorysystem}    ${categorycode}
    ...                 ${codeavailable}    ${codecodingavailable}    ${code0system}    ${code0code}    ${code0display}
    ...                 ${code1system}    ${code1code}    ${code1display}    ${codetext}    ${subject}    ${subjectvalue}
    ...                 ${effectivedatetime}    ${vQavailable}    ${vQvalue}    ${vQunit}    ${vQsystem}    ${vQcode}
    ...                 ${dataabsentreason}    ${responsecode}    ${diagnosticINDEX}    ${diagnosticsENG}    ${diagnosticsDE}

                        prepare new request session    Prefer=return=representation

    &{resp}             Run Keywords
                        ...    ehr.create new ehr               000_ehr_status.json                             AND
                        ...    load JSON                        observation-example-body-temperature-robot.json       AND
                        ...    update Resource Type             ${resourceType}                                 AND
                        ...    update ID                        ${ID}                                           AND
                        ...    update Meta Profile              ${meta}                                         ${profile}                     AND
                        ...    update Status                    ${status}                                       AND
                        ...    update Identifier                ${Identifieravailable}                          ${Identifiercodingsystem}      ${Identifiercodingcode}     ${Identifiersystem}     ${Identifiervalue}      ${Identifierassigner}    ${Identifierreference}    AND
                        ...    update Category                  ${categoryavailable}                            ${categorycodingavailable}     ${categorysystem}           ${categorycode}         AND
                        ...    update Code                      ${codeavailable}                                ${codecodingavailable}         ${code0system}              ${code0code}            ${code0display}         ${code1system}           ${code1code}             ${code1display}    ${codetext}    AND
                        ...    update Subject                   ${subject}                                      ${subjectvalue}                AND
                        ...    update Effective Date Time       ${effectivedatetime}                            AND
                        ...    update Value Quantity            ${vQavailable}                                  ${vQvalue}                     ${vQunit}                   ${vQsystem}            ${vQcode}                AND
                        ...    update Data Absent Reason        ${dataabsentreason}                             AND
                        ...    POST    ${BASE_URL}/Observation    body=${payload}                               AND
                        ...    Output Debug Info To Console                                                     AND
                        ...    validation JSON                  ${responsecode}                                 ${diagnosticINDEX}             ${diagnosticsENG}           ${diagnosticsDE}
    